package com.healthdata.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.healthdata.entity.HospitalKind;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface HospitalKindMapper extends BaseMapper<HospitalKind> {
    //根据省份名和年份找id
    @Select("SELECT * FROM hospital_kind WHERE region_year_id = #{id}")
    HospitalKind selectById( @Param("id") int id);
}
